package com.heima.zuoye.day09.timu4;

import java.io.FileNotFoundException;
import java.io.FileReader;

public class ReaderTest {
    public static void main(String[] args) throws Exception {
        FileReader fr = new FileReader("登鹳雀楼.txt");
        int len;
        char[] c = new char[5];
        while ((len = fr.read(c)) != -1) {
            System.out.print(new String(c, 0, len));
        }
        fr.close();
    }
}
